﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using ExamSharedClasses;
using ExamClient;

namespace ExamClient {
    /// <summary>
    /// (k) Diese Page zeigt Benutzerinformationen an, damit sie z.B.
    /// auf Richtigkeit überprüft werden können. Die Methode
    /// ToMoreDetailedString(); der User-Klassen werden hier eingesetzt.
    /// </summary>
    public partial class UserInformationPage : Page {

        public UserInformationPage() {
            InitializeComponent();
            
            App.UserInfoPage = this;

            if ( App.UserAddress != null ) {
                textBlock.Text = App.UserAddress.ToMoreDetailedString();
            } 
        }

        private void closeButton_Click( object sender, RoutedEventArgs e ) {
            App.MainWindow.center.Content = App.MainPage;
        }


    }
}
